package com.erp.erp_ui.warehouse.req;

import org.hibernate.validator.constraints.NotEmpty;

import java.io.Serializable;
import java.util.List;

/**
 * @ClassName : InitStockReq
 * @Description : 初始化库存入参实体
 * @Author : lst
 * @Date: 2020-07-22 07:00
 */
public class InitStockReq implements Serializable {
    /**
     * 序列码
     */
    private static final long serialVersionUID = -680562829749651455L;

    /**
     * 入库单号(库存明细中的单据编号)
     */
    @NotEmpty(message = "入库单号不能为空")
    private String inStoreBillNo;

    /**
     * 入库日期
     */
    @NotEmpty(message = "入库日期不能为空")
    private String inStoreDate;

    /**
     * 入库人
     */
    private String inStorePerson;
    /**
     * 入库人编码
     */
    private String inStoreCode;
    /**
     * 仓库id
     */
    private Integer warehouseId;

    /**
     * 初始化库存明细参数集合
     */
    private List<InitStockDetailReq> initStockDetailReqs;


    public String getInStoreBillNo() {
        return inStoreBillNo;
    }

    public void setInStoreBillNo(String inStoreBillNo) {
        this.inStoreBillNo = inStoreBillNo;
    }

    public String getInStoreDate() {
        return inStoreDate;
    }

    public void setInStoreDate(String inStoreDate) {
        this.inStoreDate = inStoreDate;
    }

    public String getInStorePerson() {
        return inStorePerson;
    }

    public void setInStorePerson(String inStorePerson) {
        this.inStorePerson = inStorePerson;
    }

    public String getInStoreCode() {
        return inStoreCode;
    }

    public void setInStoreCode(String inStoreCode) {
        this.inStoreCode = inStoreCode;
    }

    public Integer getWarehouseId() {
        return warehouseId;
    }

    public void setWarehouseId(Integer warehouseId) {
        this.warehouseId = warehouseId;
    }

    public List<InitStockDetailReq> getInitStockDetailReqs() {
        return initStockDetailReqs;
    }

    public void setInitStockDetailReqs(List<InitStockDetailReq> initStockDetailReqs) {
        this.initStockDetailReqs = initStockDetailReqs;
    }

    /**
     * 重写toString
     */
    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("InitStockReq").append('[')
                .append("inStoreBillNo=")
                .append(inStoreBillNo)
                .append(",inStoreDate=")
                .append(inStoreDate)
                .append(",inStorePerson=")
                .append(inStorePerson)
                .append(",inStoreCode=")
                .append(inStoreCode)
                .append(",warehouseId=")
                .append(warehouseId)
                .append(",initStockDetailReqs=")
                .append(initStockDetailReqs)
                .append(']');
        return sb.toString();
    }
}
